package com.foreknow.demo5;

public class Rectangle {
    private double length;
    private double width;
    public void getArea(){
        System.out.println(this.length*this.width);
    }
    public void getPer(){
        System.out.println((this.length+this.width)*2);
    }
    public void Rectangle(int width,int length){
        this.width = width;
        this.length = length;
    }

    public static void main(String[] args) {
        Rectangle rectangle = new Rectangle();
        rectangle.Rectangle(10,20);
        System.out.println(rectangle.length);
        System.out.println(rectangle.width);
        rectangle.getArea();
        rectangle.getPer();

    }
}
